import pygame
from health_bar import *

class hud:
    def __init__(self, game):
        self.game = game
        self.game_logic = game.game_logic
        
        self.hud_objs = []
        
    def draw(self):
        for obj in self.hud_objs:
            obj.update()
            self.game_logic.screen.blit(obj.image, obj.rect)
        
    def add_obj(self, obj):
        self.hud_objs.append(obj)
